package com.ct.boot.launch.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @Auther: 1
 * @Date: 2020/6/11 18:11
 * @Description:
 */

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonPropertyOrder(value = {"createdTime", "id"})
public class ArticleVO {
    private Long id;
    private String author;
    private String title;
    private String content;
//    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
//    @JsonProperty(value = "Time")
//    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Date createdTime;
}
